package com.fangcang.mongodb;

import java.io.File;
import java.util.List;
import java.util.Map;

import com.fangcang.mongodb.model.Customer;
import com.mongodb.client.result.DeleteResult;
import com.mongodb.gridfs.GridFSDBFile;

public interface MongoDbService<T> {

	public void insert(T t);
	
	public void save(T t) ;
	
	public List<Customer> findAll();
	
	public Customer findById(String id);
	
	public void update(T t);
	
	public DeleteResult delete(T t) ;
	
	 public void SaveFile(String collectionName, File file, String filename, String hotelId, String imageType);
	 
	 public List<GridFSDBFile> retrieveFileList(String collectionName, Map<String, String> map) ;
}
